{include file="general/header.tpl"}
<div id="path">
	You are here: <a href="/index.php">Home</a> &raquo; <a href="index.php">Administration</a> &raquo; <a href="{$url_set_referer_parent_page}">{if $url_set_referer_parent_page == 'url_set_referer.php'}My URL Set Referers{else}All URL Set Referers{/if}</a> &raquo; <a href="url_set_referer_view.php?id={$url_set->getID()}">View URL set referers</a>
</div>
<div id="main">
	{capture name="tiny_url_set"}{get_scheme()}://{if $domain}{$domain->getDomain()}{else}{#RewriteHost#}{/if}/?{$url_set->getGroupName()}{/capture}
	<h1>View URL set referers</h1>
	<div class="form-field">
		<label>Group name:</label>
		<b>{$url_set->getGroupName()}</b>
	</div>
	<div class="form-field">
		<label>Tiny URL set:</label>
		<b><a href="{$smarty.capture.tiny_url_set}" rel="external" class="no-underline">{$smarty.capture.tiny_url_set}</a></b><br /><br />
	</div>
	{if $paginate.total > 0 && $paginate.current_item <= $paginate.total}
		<div class="center">
			{include file="general/pagination_item_range.tpl"}
			<br /><br />
		</div>
	{/if}
	<table>
		<tr>
			<td class="item_header_cell numbers">#</td>
			<td class="item_header_cell no-overflow-link">Referer</td>
			<td class="item_header_cell numbers">Hits</td>
		</tr>
		{counter start=$paginate.first-1 print=false}
		{foreach $url_set_referers as $url_set_referer}
			<tr>
				<td class="item_cell numbers">{counter skip="1"}.</td>
				<td class="item_cell no-overflow-link">{if $url_set_referer.link}<a href="{$url_set_referer.link|escape}" class="no-underline" rel="external">{$url_set_referer.link|escape}</a>{else}Direct access{/if}</td>
				<td class="item_cell numbers">{$url_set_referer.hits}</td>
			</tr>
		{foreachelse}
			<tr><td colspan="3"><p class="center">No URL set referer matches found in the database.</p></td></tr>
		{/foreach}
	</table>
	{if $url_set_referer@show}
		<div class="center">
			<br />
			{include file="general/pagination_page_number.tpl"}
		</div>
	{/if}
</div>
{include file="general/left.tpl"}
{include file="general/footer.tpl"}